{include file="public/header" /}
<link rel="stylesheet" href="/static/admin/css/base.css" media="all">
<style>
	.layui-card-body {

		padding: 0px 1px!important;
	}
</style>
<body>

<div class="layui-fluid layui-anim-fadein">
	<div class="layui-card">

		<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">

			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
					{if $search}
					<div class="layui-form layui-card-header layuiadmin-card-header-auto">
						<div class="nav_search">
							{table:search field='$search'/}
						</div>
					</div>
					{/if}

					<div class="layui-card-body">
						<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
							<div >
								{foreach name="top_buttons" item="vo"}
								{if $vo.title == '导出'}
								<a class="{$vo.class}" data-size="{$vo.width?$vo.width:''},{$vo.height?$vo.height:''}" data-url="{:url('export',array_merge($Request.param,$extra_map))}" onclick="{$vo.onclick}">
									<i class="layui-icon {$vo.icon}"></i>{$vo.title}
								</a>
								{else}
								<a class="{$vo.class}" data-size="{$vo.width?$vo.width:''},{$vo.height?$vo.height:''}" data-url="{$vo.href?$vo.href:''}" onclick="{$vo.onclick}">
									<i class="layui-icon {$vo.icon}"></i>{$vo.title}
								</a>
								{/if}
								{/foreach}
							</div>
							<ul class="layui-tab-title" style="padding-top: 10px">
								<li class="{if $Request.controller == 'SummaryDate'}layui-this{/if}">
									<a href="{:url('SummaryDate/index')}">按日期统计</a>
								</li>
								<li class="{if $Request.controller == 'SummaryUser'}layui-this{/if}">
									<a href="{:url('SummaryUser/index')}">按会员统计</a>
								</li>
							</ul>
							<div class="layui-tab-content" style="padding-left: 0">
								<table class="layui-table" lay-data="{page:true, url:'{:url('getList',array_merge($Request.param,$extra_map))}',id:'formId',totalRow: {$totalRow}, size: 'sm',even:true,
					'cellMinWidth':80,limit:20,limits:[20,40,60,80,100]}" lay-filter="table">
									<thead>
									<tr>
										{foreach name="columns" item="vo"}
										{if isset($vo.format) && $vo.format == 'password'}
										{else}
										<?php $data = json_encode($vo);?>
										<th lay-data="{$data}">{$vo.title}</th>
										{/if}
										{/foreach}
									</tr>
									</thead>
								</table>
							</div>
						</div>

						<script type="text/html" id="barDemo">
							<div class="layui-btn-group">
								{foreach name="right_buttons" item="vo"}
								<a class="{$vo.class} right_button" lay-event="{$vo.json}">{$vo.title}</a>
								{/foreach}
							</div>
						</script>

					</div>
				</div>
			</div>

		</div>
	</div>
</div>
</body>
{include file="public/footer" /}
{foreach name="js_url" item="vo"}
<script type="text/javascript" src="/static/admin/form/js/{$vo}.js"></script>
{/foreach}

</html>